package com.dfbz.demo01_OutputStream;

import java.io.FileOutputStream;
import java.io.OutputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_写出单个字节 {
    public static void main(String[] args) throws Exception{

        OutputStream os =new FileOutputStream("001.txt");

        // 写出一个字节!
        os.write(97);           // 中文的字节---  -128~127
        os.write(98);


        os.close();
    }
}
